package com.hn.kiss.modules.quartz.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="QuartzJob", description="定时任务管理对象")
@TableName("sys_quartz_job")
public class QuartzJob implements Serializable {
    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "id")
	@TableId(type = IdType.ID_WORKER_STR)
	private String id;

	@ApiModelProperty(value = "创建人")
	private String createUser;

	@ApiModelProperty(value = "创建日期")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createDate;

	@ApiModelProperty(value = "修改人")
	private String modifyUser;

	@ApiModelProperty(value = "信息修改时间")
	@TableField(fill = FieldFill.UPDATE)
	private LocalDateTime modifyDate;

	@ApiModelProperty(value = "任务类名")
	private String jobClassName;

	@ApiModelProperty(value = "cron表达式")
	private String cronExpression;

	@ApiModelProperty(value = "参数")
	private String parameter;

	@ApiModelProperty(value = "描述")
	private String description;

	@ApiModelProperty(value = "状态 0正常 -1停止")
	private Integer status;

	@ApiModelProperty(value = "删除标志(1已删除,0正常)")
	@TableLogic
	private Integer deleted;

}
